home *** CD-ROM | disk | FTP | other *** search
-
- // ───────────────────────────────────────────────────────────────────
- // The Aurora Editor v2.0
- // Copyright 1993-1995 nuText Systems. All Rights Reserved Worldwide.
- //
- // Sample Utility Macro menu
- // ───────────────────────────────────────────────────────────────────
-
- // compile time macros and function definitions
- include bootpath "define.aml"
-
- // returns qualified macro filename
- function macpath (xfile)
- return getbootpath + "MACRO\\" + xfile + ".X"
- end
-
- // define a popup menu to run the sample utility macros
- menu "util"
- item " &Count Characters in a block or file" runmacro (macpath "countchr")
- item " Count &Words in a block or file" runmacro (macpath "countwrd")
- item " Add-up &Numbers in a block" runmacro (macpath "sumblock")
- item " Find the &Longest Line" runmacro (macpath "longline")
- item " &Full Date and Time" runmacro (macpath "fulldate")
- item " Draw a Bo&x around a column mark" runmacro (macpath "drawbox")
- item " &Remove Duplicate Lines" runmacro (macpath "deldup")
- item " Delete &Blank lines in a block or file" runmacro (macpath "delblank")
- item " &Entab a Block or File" runmacro (macpath "tabs") 'e'
- item " &Detab a Block or File" runmacro (macpath "tabs")
-
- item "-"
- item " &Open Desktop Layout.."
- file = ask "Desktop file" "_load"
- if file then
- opendesk (qualify file (getbufname))
- restoredesk
- end
- item " &Save Desktop Layout.."
- file = ask "Desktop file" "_load"
- if file then
- currdesk
- savedesk (qualify file (getbufname))
- display
- end
- item "-"
- item " Display Key &Assignments" runmacro (macpath "keydef")
- item " Display &Keycodes" runmacro (macpath "keycodes")
- item " &View DOS Memory" runmacro (macpath "viewmem")
- item "-"
- item " Calen&dar" runmacro (macpath "calendar")
- item " Color C&hart" runmacro (macpath "clrchart")
- item " Change Color &Palette" runmacro (macpath "palette")
- item " Run &Installation" runmacro (bootpath "install.x")
- end
-
- setbufname "util"
-
- // display the popup menu
- popup "util" "Sample Utility Macros" 39
-
- // destroy the menu
- destroybuf "util"
-
-